import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout, // 路由出口
  children: [
    // 设置二级路由的组件中的内容显示在父组件中
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      // meta: { title: '员工管理', icon: 'dashboard' }  左侧菜单栏
      meta: { title: '员工管理', icon: 'dashboard' }
    },
    {
      // hidden: true,   不在左侧菜单显示
      hidden: true,
      path: '/detail',
      name: 'detail',
      component: () => import('@/views/employees/detail.vue')
      // meta: { title: '员工管理', icon: 'dashboard' }  左侧菜单栏
    }
  ]
}
